<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EPiServer.Models.BaseModel>" %>
<ul>
<% foreach (var link in Model.SubMenu) { %>
    <li>
        <%= link.Selected(link.Expanded) %>
        <% if (link.Expanded && link.SubItems.Count > 0) { %>
            <ul>
            <% foreach (var subLink in link.SubItems) { %>
                <li><%= subLink%></li>
            <% } %>
            </ul>
        <%} %>
    </li>
<% } %>
</ul>
<!-- EPiServer:PageTree ShowRootPage="false" ru nat="server" id="Menu">
	<IndentTemplate>
		<ul>
	</IndentTemplate>
	
	<ItemHeaderTemplate>
			<li>
	</ItemHeaderTemplate>
		
	<ItemTemplate>
				<EPiServer:Property PropertyName="PageLink" run at="server" />
	</ItemTemplate>
	
	<SelectedItemTemplate>
	            <EPiServer:Property CssClass="selected" PropertyName="PageName" ru nat="server" />
	</SelectedItemTemplate>
	
	<ItemFooterTemplate>
			</li>
	</ItemFooterTemplate>
	
	<UnindentTemplate>
		</ul>
	</UnindentTemplate>
</EPiServer:PageTree -->